<%@page import="luchbox.SHOP"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>  
<!-- 要測試下拉選單 --> 
<jsp:useBean id="m" class="dir1.Menus" ></jsp:useBean>
<jsp:setProperty property="*" name="m"/>   <!-- 接收參數 -->  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>12/13 homework 排除html裡的java語法</title>
<link href="try.css" rel="stylesheet" type="text/css">
</head>

<body>

${m.setMenus()}


<br>
<center>
12/13 homework 排除html裡的java語法
<br><br>
<!-- 這邊是直接超連結 -->
<fieldset class="fieldset0">
<legend>顯示所有店家</legend>
<a href="search.jsp">顯示全部</a>
</fieldset>
<br>
<br>
</center>

<!-- 以下要查詢 -->
<fieldset class="fieldset1">
<legend>查詢功能</legend>
<form action = "select.jsp" method="post">
	<br>
	<!-- 下拉選擇異動店家名 -->
	欲查詢之店家名稱	
	<select name="shopid" >
	${m.outcome}	
	</select>	
	<br>
	<p align="right"><input type="submit" name="b1" value="開始查詢" class="button1"></p>
</form>
</fieldset>
<br>
<br>

<!-- 以下要新增 -->
<fieldset class="fieldset1">
<legend>新增功能</legend>
<form action = "insert.jsp" method="post">
	<br>
	店家自訂編號<input type="text" size=5 name="shop_number"><br>
	店家名稱<input type="text" size=10 name="shop_name">
	店家電話<input type="text" size=10 name="shop_phone"><br>
	店家地址<input type="text" size=40 name="shop_address" VALUE="高雄市某一區">	<br>
	<p align="right"><input type="submit" name="b3" value="確定新增" class="button1"></p>
</form>
</fieldset>
<br>
<br>

<!-- 以下要異動 -->
<fieldset class="fieldset1">
<legend>異動功能</legend>
<form action = "update.jsp" method="post">
	<br>
	<!-- 下拉選擇異動店家名 -->
	欲異動之店家名稱
	<select name="shopid"  >
	${m.outcome}
	</select>
	<br>
	店家自訂編號<input type="text" size=5 name="shop_number"><br>
	店家名稱<input type="text" size=10 name="shop_name">
	店家電話<input type="text" size=10 name="shop_phone"><br>
	店家地址<input type="text" size=40 name="shop_address" VALUE="高雄市有一區">	<br>
	<p align="right"><input type="submit" name="b4" value="確定異動" class="button1"></p>
</form>
</fieldset>
<br>
<br>

<!-- 以下要刪除 -->
<fieldset class="fieldset1">
<legend>刪除功能</legend>
<form action = "delete.jsp" method="post">
	<br>	
	欲刪除之店家名稱
	<select name="shopid"  >
	${m.outcome}
	</select>
	<br>
	<p align="right"><input type="submit" name="b5" value="確定刪除" class="button1"></p>
</form>
</fieldset>
<br><br><br>
<br><br><br>

</body>
</html>